home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / ConnectionTools.a < prev    next >
Text File  |  1996-05-01  |  3KB  |  110 lines

  1. ;
  2. ;    File:        ConnectionTools.a
  3. ;
  4. ;    Contains:    Communications Toolbox Connection Tools Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__CONNECTIONTOOLS__') = 'UNDEFINED' THEN
  19. __CONNECTIONTOOLS__ SET 1
  20.  
  21.     IF &TYPE('__WINDOWS__') = 'UNDEFINED' THEN
  22.     include 'Windows.a'
  23.     ENDIF
  24.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  25.     include 'Dialogs.a'
  26.     ENDIF
  27.     IF &TYPE('__CONNECTIONS__') = 'UNDEFINED' THEN
  28.     include 'Connections.a'
  29.     ENDIF
  30.     IF FOR_SYSTEM7_ONLY THEN
  31.  
  32.                                                             ; messages for DefProc 
  33. cmInitMsg                        EQU        0
  34. cmDisposeMsg                    EQU        1
  35. cmSuspendMsg                    EQU        2
  36. cmResumeMsg                        EQU        3
  37. cmMenuMsg                        EQU        4
  38. cmEventMsg                        EQU        5
  39. cmActivateMsg                    EQU        6
  40. cmDeactivateMsg                    EQU        7
  41. cmIdleMsg                        EQU        50
  42. cmResetMsg                        EQU        51
  43. cmAbortMsg                        EQU        52
  44. cmReadMsg                        EQU        100
  45. cmWriteMsg                        EQU        101
  46. cmStatusMsg                        EQU        102
  47. cmListenMsg                        EQU        103
  48. cmAcceptMsg                        EQU        104
  49. cmCloseMsg                        EQU        105
  50. cmOpenMsg                        EQU        106
  51. cmBreakMsg                        EQU        107
  52. cmIOKillMsg                        EQU        108
  53. cmEnvironsMsg                    EQU        109                    ; new connection tool messages for ctb 1.1 
  54. cmNewIOPBMsg                    EQU        110
  55. cmDisposeIOPBMsg                EQU        111
  56. cmGetErrorStringMsg                EQU        112
  57. cmPBReadMsg                        EQU        113
  58. cmPBWriteMsg                    EQU        114
  59. cmPBIOKillMsg                    EQU        115                    ;    messages for validate DefProc    
  60. cmValidateMsg                    EQU        0
  61. cmDefaultMsg                    EQU        1                    ;    messages for Setup DefProc    
  62. cmSpreflightMsg                    EQU        0
  63. cmSsetupMsg                        EQU        1
  64. cmSitemMsg                        EQU        2
  65. cmSfilterMsg                    EQU        3
  66. cmScleanupMsg                    EQU        4                    ;    messages for scripting defProc    
  67. cmMgetMsg                        EQU        0
  68. cmMsetMsg                        EQU        1                    ;    messages for localization defProc    
  69. cmL2English                        EQU        0
  70. cmL2Intl                        EQU        1
  71.  
  72.                                                             ; private data constants 
  73. cdefType                        EQU        'cdef'                ; main connection definition procedure 
  74. cvalType                        EQU        'cval'                ; validation definition procedure 
  75. csetType                        EQU        'cset'                ; connection setup definition procedure 
  76. clocType                        EQU        'cloc'                ; connection configuration localization defProc 
  77. cscrType                        EQU        'cscr'                ; connection scripting defProc interfaces 
  78. cbndType                        EQU        'cbnd'                ; bundle type for connection 
  79. cverType                        EQU        'vers'
  80. CMDataBuffer            RECORD 0
  81. thePtr                     ds.l    1                ; offset: $0 (0)
  82. count                     ds.l    1                ; offset: $4 (4)
  83. channel                     ds.w    1                ; offset: $8 (8)
  84. flags                     ds.w    1                ; offset: $A (10)
  85. sizeof                     EQU *                    ; size:   $C (12)
  86.                         ENDR
  87. ; typedef struct CMDataBuffer *            CMDataBufferPtr
  88.  
  89. CMCompletorRecord        RECORD 0
  90. async                     ds.b    1                ; offset: $0 (0)
  91. filler                     ds.b    1                ; offset: $1 (1)
  92. completionRoutine         ds.l    1                ; offset: $2 (2)
  93. sizeof                     EQU *                    ; size:   $6 (6)
  94.                         ENDR
  95. ; typedef struct CMCompletorRecord *    CMCompletorPtr
  96.  
  97. ;     Private Data Structure    
  98. CMSetupStruct            RECORD 0
  99. theDialog                 ds.l    1                ; offset: $0 (0)
  100. count                     ds.w    1                ; offset: $4 (4)
  101. theConfig                 ds.l    1                ; offset: $6 (6)
  102. procID                     ds.w    1                ; offset: $A (10)        ;  procID of the tool    
  103. sizeof                     EQU *                    ; size:   $C (12)
  104.                         ENDR
  105. ; typedef struct CMSetupStruct *        CMSetupPtr
  106.  
  107.     ENDIF
  108.     ENDIF ; __CONNECTIONTOOLS__ 
  109.  
  110.